package com.netcracker.studportal.server.main_test;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.json.simple.JSONObject;

import com.netcracker.studportal.server.facade.FacadeAdmin;
import com.netcracker.studportal.server.model.*;
import com.netcracker.studportal.server.util.FactoryDAO;

public class MainFacadeAdminStudent {
	public static void main(String args[]){
		FacadeAdmin fa= new  FacadeAdmin();
		try{
			
		JSONObject obj = new JSONObject();
		
		obj.put("student_id", "1");
		obj.put("user_id", "20");
		obj.put("login", "20");
		obj.put("password", "20");
		obj.put("stud_first_name", "10");
		obj.put("stud_last_name", "ffsf");
		obj.put("birthday", "11.11.11");
		obj.put("course", "3");
		obj.put("faculty_id", "1");
		obj.put("group_num", "1");
		obj.put("note", "20");
		
		
	  // String str=fa.deleteFieldStudent(obj.toString());
      //  String str=fa.updateFieldStudent(obj.toString());
        
		//String str=fa.addNewStudent(obj.toString());
		//System.out.println("str "+str);
		
		//FactoryDAO.getUsersDAO().Add(user, "gsndf");
		String all_student=fa.getAllStudent();		
	    System.out.println(all_student);	
		
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
